package no.sachmuld.methodcombination.examples.annotation.clossimplestyle.equalshashcode.v2;


import no.sachmuld.aspectjattach.AspectJAgent;

/**
 *
 */
public class Main implements Runnable {

    @Override
    public void run() {

        AspectJAgent.initializeIfNeeded();

        new Runnable()  {

            @Override
            public void run() {
                Point3D point1 = new Point3D(1, 2, 3);
                Point3D point2 = new Point3D(1, 2, 3);
                Point3D point3 = new Point3D(1, 2, 4);
                Point2D point4 = new Point2D(1, 2);

                System.out.println(point1.equals(point2));
                System.out.println(point1.equals(point3));
                System.out.println(point1.equals(point4));
                System.out.println(point4.equals(point1));
                System.out.println(point1.hashCode());

            }

        }.run();

    }

    public static void main(String... args) {

        new Main().run();

    }
}
